package org.shareshelf.util;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

public class PersistenceMgr {
	private static final PersistenceManagerFactory instance = JDOHelper
			.getPersistenceManagerFactory("transactions-optional");

	private PersistenceMgr() {
	}

	public static PersistenceManager manufacture() {
		return instance.getPersistenceManager();
	}
}
